package cn.wolfcode.luowowo.gold.mapper;

import cn.wolfcode.luowowo.gold.domain.GoldProduct;
import java.util.List;

public interface GoldProductMapper {
    int deleteByPrimaryKey(Long id);

    int insert(GoldProduct record);

    GoldProduct selectByPrimaryKey(Long id);

    List<GoldProduct> selectAll();

    int updateByPrimaryKey(GoldProduct record);

    /**
     * 查询 大分类下销售量前8的商品
     * @param typeId
     * @return
     */
    List<GoldProduct> selectByProductTypeParentId(Long typeId);

    List<GoldProduct> selectpubLish();

}